﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using System.Runtime.Serialization;

namespace Common.DataBaseNew
{
    
    interface UsersImpl
    {
        //Register a new user.
        void register(string name, string lastName, string userName, int password, string email);

        //Check if user with user name = uname already exist in the database. 
        Boolean isUser(string uname);

        //Return user with user name = uname.
        User getUser(string uname);

        //Check if user is a member (for login).
        Boolean isMember(string username, string password);

        //Return the user's friends. 
        SortedDictionary<string, User> getFriends(string username);

        bool addFriend(string username, string friend);

        //Return all users. 
        SortedDictionary <string, User> getUsers();
    }
}
